﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chap11_jihe
{
    internal class MyGenericClass<T>
    {
    }
    internal class MyGenericClass<T1, T2, T3>
    {
        private T1 innerT1Object;

        public MyGenericClass(T1 t1)
        {
            innerT1Object = t1;
        }

        public MyGenericClass()
        {
            innerT1Object = default(T1);
        }

        public T1 InnerT1Object
        {
            get { return innerT1Object; }
        }

        public string GetAllTypesAsString()
        {
            return typeof(T1).ToString() + " " + typeof(T2).ToString() + " " + typeof(T3).ToString();
        }
    }
}
